package com.dyzx.hbb.modules.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName car_model
 */
@TableName(value ="car_model")
@Data
@Schema(description = "汽车型号信息")
public class CarModel {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 车型名称
     */
    private String model;

    /**
     * 状态 字典信息：sys_global_status
     */
    private Integer status;

    /**
     * 创建日期（毫秒级时间戳）
     */
    private Long createDate;

    /**
     * 更新日期（毫秒级时间戳）
     */
    private Long updateDate;

    /**
     * 删除标志
     */
    private Integer deleted;

    /**
     * 操作用户编号
     */
    private Long operatorId;

    /**
     * 企业编号
     */
    private Long organId;

    /**
     * 汽车品牌编号
     */
    private Long markId;

    /**
     * 第几代 (如：第八代, MK7)
     */
    private String generation;

    /**
     *  发动机型号代码 (如：2AR-FE, EA888 Gen3) - 这是区分适配性的关键
     */
    private String engineCode;

    /**
     * 具体配置/款型 (如：豪华版, 运动版) - 某些配件可能因配置不同而异
     */
    private String trimLevel;

    /**
     * 车身类型 (如：轿车, SUV, MPV)。car_body_type
     */
    private Integer bodyType;

    /**
     * 车型备注信息
     */
    private String description;

    /**
     * 
     */
    private String levelName;

    /**
     * 
     */
    private String logo;

    /**
     * 
     */
    private String fctname;

    /**
     * 
     */
    private Long minPrice;

    /**
     * 
     */
    private Long maxPrice;

    /**
     * 
     */
    private Integer findCount;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarModel other = (CarModel) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getOrganId() == null ? other.getOrganId() == null : this.getOrganId().equals(other.getOrganId()))
            && (this.getMarkId() == null ? other.getMarkId() == null : this.getMarkId().equals(other.getMarkId()))
            && (this.getGeneration() == null ? other.getGeneration() == null : this.getGeneration().equals(other.getGeneration()))
            && (this.getEngineCode() == null ? other.getEngineCode() == null : this.getEngineCode().equals(other.getEngineCode()))
            && (this.getTrimLevel() == null ? other.getTrimLevel() == null : this.getTrimLevel().equals(other.getTrimLevel()))
            && (this.getBodyType() == null ? other.getBodyType() == null : this.getBodyType().equals(other.getBodyType()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getLevelName() == null ? other.getLevelName() == null : this.getLevelName().equals(other.getLevelName()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getFctname() == null ? other.getFctname() == null : this.getFctname().equals(other.getFctname()))
            && (this.getMinPrice() == null ? other.getMinPrice() == null : this.getMinPrice().equals(other.getMinPrice()))
            && (this.getMaxPrice() == null ? other.getMaxPrice() == null : this.getMaxPrice().equals(other.getMaxPrice()))
            && (this.getFindCount() == null ? other.getFindCount() == null : this.getFindCount().equals(other.getFindCount()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getOrganId() == null) ? 0 : getOrganId().hashCode());
        result = prime * result + ((getMarkId() == null) ? 0 : getMarkId().hashCode());
        result = prime * result + ((getGeneration() == null) ? 0 : getGeneration().hashCode());
        result = prime * result + ((getEngineCode() == null) ? 0 : getEngineCode().hashCode());
        result = prime * result + ((getTrimLevel() == null) ? 0 : getTrimLevel().hashCode());
        result = prime * result + ((getBodyType() == null) ? 0 : getBodyType().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getLevelName() == null) ? 0 : getLevelName().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getFctname() == null) ? 0 : getFctname().hashCode());
        result = prime * result + ((getMinPrice() == null) ? 0 : getMinPrice().hashCode());
        result = prime * result + ((getMaxPrice() == null) ? 0 : getMaxPrice().hashCode());
        result = prime * result + ((getFindCount() == null) ? 0 : getFindCount().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", model=").append(model);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", deleted=").append(deleted);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", organId=").append(organId);
        sb.append(", markId=").append(markId);
        sb.append(", generation=").append(generation);
        sb.append(", engineCode=").append(engineCode);
        sb.append(", trimLevel=").append(trimLevel);
        sb.append(", bodyType=").append(bodyType);
        sb.append(", description=").append(description);
        sb.append(", levelName=").append(levelName);
        sb.append(", logo=").append(logo);
        sb.append(", fctname=").append(fctname);
        sb.append(", minPrice=").append(minPrice);
        sb.append(", maxPrice=").append(maxPrice);
        sb.append(", findCount=").append(findCount);
        sb.append("]");
        return sb.toString();
    }
}